package com.apps.member.model.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 大鹏
 * @since 2020-10-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("kupa_member_vip_order")
public class KupaMemberVipOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer member_id;

    /**
     * 交易号，由第三方支付机构提供
     */
    private String trade_sn;

    /**
     * 订单编号
     */
    private String sn;

    /**
     * 1=包月,12=包年,这样设置值是为了方便做除法计算实付价格
     */
    private Integer type;

    /**
     * 实际支付金额=(vip_price/type)-amount_price
     */
    private BigDecimal pay_price;

    /**
     * 开通VIP包年价格,这个是全局参数表设置
     */
    private BigDecimal vip_year_price;

    /**
     * 优惠金额
     */
    private BigDecimal amount_price;

    /**
     * 活动id,为-1则没有参与任何活动
     */
    private Integer activity_id;

    private String order_status;

    private String pay_type;

    private LocalDateTime gmt_create;

    private LocalDateTime gmt_modify;

    private String remark;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String TRADE_SN = "trade_sn";

    public static final String SN = "sn";

    public static final String TYPE = "type";

    public static final String PAY_PRICE = "pay_price";

    public static final String VIP_YEAR_PRICE = "vip_year_price";

    public static final String AMOUNT_PRICE = "amount_price";

    public static final String ACTIVITY_ID = "activity_id";

    public static final String ORDER_STATUS = "order_status";

    public static final String PAY_TYPE = "pay_type";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFY = "gmt_modify";

    public static final String REMARK = "remark";

}
